package com.sgcc.ln.pmos.mobileapp.utils;

import android.content.Context;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.lxj.xpopup.core.CenterPopupView;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.ln.pmos.mobileapp.adapter.DataDifferentItemAdapter;
import com.sgcc.ln.pmos.mobileapp.bean.DataDifferentItemBean;

import java.util.List;

/**
 * @author ChaoAJ
 * @describe 关联企业信息数据异常提示
 * @time 2022/8/29 14:10
 */
public class DataDifferent1Dialog extends CenterPopupView {

    private RecyclerView rvDataList;
    private List<DataDifferentItemBean> list;

    public DataDifferent1Dialog(Context context, List<DataDifferentItemBean> list) {
        super(context);
        this.list = list;

    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.dialog_data_different1_layout;
    }

    @Override
    protected void onCreate() {
        super.onCreate();
        rvDataList = (RecyclerView) findViewById(R.id.rvDataList);
        rvDataList.setLayoutManager(new LinearLayoutManager(getContext()));
        DataDifferentItemAdapter dataDifferentItemAdapter = new DataDifferentItemAdapter(list);
        rvDataList.setAdapter(dataDifferentItemAdapter);
        findViewById(R.id.tvCancel).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
    }

    @Override
    protected void onShow() {
        super.onShow();
    }

    @Override
    protected void onDismiss() {
        super.onDismiss();
    }




}